package com.netrust.cmsx.core.security;

import java.io.Serializable;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.SessionIdGenerator;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import com.netrust.cmsx.utils.string.Uuid;

/**
 * 封装各种生成唯一性ID算法的工具类.
 */
@Service
@Lazy(false)
public class IdGen extends Uuid implements SessionIdGenerator {
	
	public Serializable generateId(Session session) {
		return uuid();
	}

}
